package fr.p10.miage.FactSing.Product;

import fr.p10.miage.FactSing.Factory.Factory;

public class ProductA implements Product {
	
	static{
		Factory.getInstance().registerProduct("ProductA", new ProductA());
	}
	
	public void doYourStuff() {
		System.out.println ("I'm a ProductA , doing my stuff ");
	}

	public ProductA() {
		super();
	}
	
	@Override
	public Product creerProduct() {
		return new ProductA();
	}

	@Override
	public void faireActions() {
		this.doYourStuff();
	}
}
